=link_to_remote computer.name, { :url => {:controller => :computers, :action=> :show , :id => computer.id},:method => :get, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, :href => (url_for ({:controller => :computers, :action => :show , :id => computer.id}))
- if logged_in?
  %ul.options
    %li
      = link_to_remote '&nbsp;<span>Modifier</span>',{ :url => {:controller => 'computers', :action=> 'edit', :id => computer.id}, :method => :get, :before => "Element.show('loader');Element.show('wait_icon')", :complete => "Element.hide('loader');Element.hide('wait_icon')"}, {:href => (url_for ({:controller => :computers, :action => :edit, :id => computer.id})), :class => "edit", :title => "Modifier l'ordinateur"  }
      = button_to '<span>Supprimer</span>', { :controller => 'computers', :action => "destroy", :id => computer.id }, |
      {:method => :delete, :class => "delete", :title => "Supprimer l'ordinateur" } |

%span.span2= 'RAM: '  + (computer.ram_error? ? 'KO' : 'OK')
%span.span3= 'HDD: '  + (computer.hdd_error? ? 'KO' : 'OK')
%span.span4= 'PING: ' + (computer.ping_error? ? 'KO' : 'OK')
